package pl.streamsoft.test.currency_view.storage;

public class Storage {

	private final static Storage instance = new Storage();
	private CurrencyTableModel currencyTableModel;
	private CurrencyTypeComboboxModel currencyTypeComboboxModel;

	public Signal averageUpdateSignal;
	public Signal newCurrencyAddedSignal;
	

	private Storage() {
		currencyTableModel = new CurrencyTableModel();
		currencyTypeComboboxModel = new CurrencyTypeComboboxModel();
		averageUpdateSignal = new Signal("mainTitle");
		newCurrencyAddedSignal = new Signal("newCurrencyAdded");
		
	}

	public static synchronized Storage getInstance() {
		return instance;
	}

	public CurrencyTableModel getCurrencyTableModel() {
		return currencyTableModel;
	}

	public CurrencyTypeComboboxModel getCurrencyTypeComboboxModel() {
		return currencyTypeComboboxModel;
	}

}
